package com.ws;

import java.util.ArrayList;
import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;

import com.domain.Member;

@WebService(serviceName="TestWebService", endpointInterface="WebServices.class+")
public class WebServicesImpl implements WebServices {

	@WebMethod(operationName="list")
	public List<Member> list(){
		List<Member> l=new ArrayList<Member>();
		Member member = new Member();
		member.setName("John Doe");
		member.setPhone("1-800-800-800");
		member.setEmail("john@doe.com");
		Member member2 = new Member();
		member2.setName("xxxx");
		member2.setPhone("1-800-800-800");
		member2.setEmail("xxx@x.com");
		l.add(member);
		l.add(member2);
		
		return l;
	}
	
	@WebMethod(operationName="get")
	public String getString(String a) {
		return "HEllo " + a;
	}	
	
}
